package service;

import com.zjp.blog.model.Category;
import com.zjp.blog.service.CategoryService;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

/**
 * @author pj_zhong
 * @email pj_zhong@163.com / pj_zhong@gmail.com
 */
@ContextConfiguration("classpath:spring/application.xml")
@RunWith(SpringJUnit4ClassRunner.class)
public class CategoryServiceTest {

    @Resource
    CategoryService categoryService;

    @Test
    public void test()
    {
    /*    Category c = new Category();

        c.setCategoryName("News");
        c.setSort(1);

        categoryService.create(c);*/
    }

}
